<?php
class TipoVenta extends Doctrine_Record {
    public function setTableDefinition() {
        $this->setTableName('tipoVenta');
        $this->hasColumn('contenido','string',50);
    }

    public static function trueque () {
        return Doctrine::getTable('tipoVenta')->findOneByContenido('trueque');
    }
    public static function dinero () {
        return Doctrine::getTable('tipoVenta')->findOneByContenido('dinero');
    }
    public static function gratuito () {
        return Doctrine::getTable('tipoVenta')->findOneByContenido('gratuito');
    }
}
?>